#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);


}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    //获取光标，返回QCursor
     QCursor  cur=ui->pushButton->cursor();
    qDebug()<<cur;
 //设置全局光标
      QGuiApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
      //设置控件光标
      ui->pushButton->setCursor(QCursor(Qt::BlankCursor));
}
